package com.le.http.lehttprequest;

import android.os.Handler;

import java.util.HashMap;


/**
 * Created by jeason on 16/8/12.
 */
public class LeHttpRequest {

    static {
        System.loadLibrary("LeHttpRequest");
    }
    public static final native int get(String url, String[] httpHeader, String proxy, int tag, long timeout, Handler resultHandler);
    public static final native int post(String url, HashMap<String, String> httpHeader, byte[] data, String proxy, int tag, long timeout, Handler resultHandler);
    public static final native void cancleWithRequestId(int requestId);
    public static final native void cancleWithTag(int tag);
}
